﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StarPizza.Model.BaseModel
{
    public partial class PizzaTemplate : IPizzaTemplate
    {
        public IEnumerable<Topping> Toppings
        {
            get
            {
                return this.PizzaComposition.Select(x => x.Topping).ToList();
            }
        }
        public Nullable<int> ReferencableID
        {
            get { return this.ID; }
        }
    }
}
